﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:SL8.SL.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
    mc:Ignorable="d">

    <Style TargetType="local:FieldSet">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:FieldSet">
                	<Grid x:Name="Root" d:DesignHeight="300" d:DesignWidth="400" Background="{TemplateBinding Background}">                		 
                		<Rectangle Margin="6,10,6,6" Stroke="{TemplateBinding BorderBrush}" RadiusX="3" RadiusY="3" />
                		<Border HorizontalAlignment="Left" VerticalAlignment="Top" Margin="30,2,0,0" Background="{TemplateBinding Background}">
                			<TextBlock TextWrapping="Wrap" Text="{TemplateBinding GroupText}"/>
                		</Border>
                		<ContentPresenter Margin="11,15,11,11"/>                        
                	</Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="BorderBrush" Value="#FF999999"/>
        <Setter Property="Background" Value="White"/>
    </Style>
</ResourceDictionary>
